package month4.day5.computer;

public class Zuzhuang {
    public static void main(String[] args) {
        PC pc=new PC();
        pc.setBrand("神舟");
        pc.setMoney(5000);
        System.out.println("装上CPU");
        pc.setCpu(new IntelCPU("I9",4));
        pc.show();
        pc.work();
        System.out.println("装上内存");
        pc.setEms(new RAM_EMC("I9",4));
        pc.show();
        pc.work();
        System.out.println("装上硬盘");
        pc.setHardDisk(new SSD_HD(1));
        pc.show();
        pc.work();
        System.out.println("装上键盘");
        pc.setUsb(new USBKeyboard("罗技",500));
        pc.show();
        pc.work();
    }
}
